<ion-view view-title="授权中心订单一览">

	<ion-content>
		<!--描述：下拉刷新-->
		
		<div class="list" id="myorder-top1">
			<li class="item item-divider">
				授权中心：{{data.store_name}}
			</li>
			<li class="item item-input">
				订单号：
				<input type="text" placeholder="请输入订单号" ng-model="input.order_id" />
			</li>
			<li class="item item-input">
				商品名：
				<input type="text" placeholder="请输入商品名" ng-model="input.goods_name" />
			</li>
			<!-- date and time -->
			<li class="item item-input" ion-datetime-picker date title="'请输入开始日期'" ng-model="input.start_date">
				<span class="input-label">开始日期：</span>
				<input type="text" placeholder="请输入开始日期" class="timeLight" ng-class="{'timeNoneInfo':input.start_date}">{{input.start_date| date: "yyyy-MM-dd"}}</input>
			</li>
			<li class="item item-input" ion-datetime-picker date title="'请输入结束日期'" ng-model="input.end_date">
				<span class="input-label">结束日期：</span>
				<input type="text" placeholder="请输入结束日期" class="timeLight" ng-class="{'timeNoneInfo':input.end_date}">{{input.end_date| date: "yyyy-MM-dd"}}</input>
			</li>
			<li class="item item-input">
				订单状态：
				<div class="input-value" ng-click="doSelectType()">{{input.type_select.name}}</div>
				<button class="button button-small button-assertive col-25 col-offset-3" on-tap="search()">搜索</button>
			</li>
			<!--<li class="item item-input item-input-inset item-icon-right">
 			   	  	 <label class="item-input-wrapper">
 			   	  	  <input type="text"/>
 			   	  	 </label>
 			   	  	 <i class="icon ion-search font-1rem-my"></i>
 			</li>-->
			<li class="item item-divider">
				查找到<label class="assertive">{{order_count}}</label>个订单，金额<label class="assertive">{{order_money|currency:'￥'}}</label>元
			</li>
			
			<!-- 循环div -->
		</div>
		<ion-scroll direction="y" ng-style="myorder_myObj" lazy-scroll>
		<!--描述：下拉刷新-->
			<ion-refresher pulling-text="下拉刷新..." on-refresh="doRefresh()"></ion-refresher>
			<div class="margin-bottom-10" ng-repeat="num in data.order" >
				<!-- 循环div -->
				<li class="item item-borderless " style="padding: 6px 0 5px 16px;">
					订单号：<span  >{{num.id}}</span>
					<button class="button button-small  button-positive  right-zhang" style="width: 20%;" on-tap="show_detail(num.id,num.store_id)">详情</button>
				</li>
				<li class="item item-input item-borderless" on-tap="onshow_first({{num.store_id}})">
					买家：<span class="positive" >{{num.buyer_name}}</span>
				</li>
				<li class="item item-input item-borderless">
					订单类型：<span>{{num.order_type}}</span>
				</li>
				<li class="item item-borderless item-input">
					数量：{{num.count}}件 <span class="margin-left-10-my">金额：<span class="assertive">{{num.total_amount|currency:'￥'}}</span>元</span>
				</li>
			</div>
				<!--描述：当用户到达页脚或页脚附近时-->
		<ion-infinite-scroll ng-if="!isLoad" immediate-check="false" on-infinite="doRefreshMore()" distance="1%"></ion-infinite-scroll>
			</ion-scroll>
	
	</ion-content>
</ion-view>